package example.oauth.signature;

import java.io.UnsupportedEncodingException;

import example.oauth.OAuthMessage;

public class OAuthSignatureMethod {
	public static String getBaseString(OAuthMessage message){
		
		return null;
	}
    protected String getSignature(OAuthMessage message) {
        String baseString = getBaseString(message);
        //String signature = getSignature(baseString);
        // Logger log = Logger.getLogger(getClass().getName());
        // if (log.isLoggable(Level.FINE)) {
        // log.fine(signature + "=getSignature(" + baseString + ")");
        // }
        return null;//signature;
    }
	/*
    public static byte[] decodeBase64(String s) {
    	byte[] b;
    	try {
    	    b = s.getBytes(BASE64_ENCODING);
    	} catch (UnsupportedEncodingException e) {
    	    System.err.println(e + "");
    	    b = s.getBytes();
    	}
    	return BASE64.decode(b);
        }

        public static String base64Encode(byte[] b) {
    	byte[] b2 = BASE64.encode(b);
    	try {
    	    return new String(b2, BASE64_ENCODING);
    	} catch (UnsupportedEncodingException e) {
    	    System.err.println(e + "");
    	}
    	return new String(b2);
        }
        */
        private static final String BASE64_ENCODING = "ISO-8859-1";
        private static final Base64 BASE64 = new Base64();
}
